プロジェクト

全般

プロフィール

リビジョン 437

山内約6年前に追加

プロテクトフォーム修正

差分を表示:

trunk/src/ProcessManagement/ProcessManagement/Forms/ProtectForm.cs
46 46
					case 4: MessageBox.Show("???[?J???f?B?X?N????s????????????B"); break;
47 47
					case 5: MessageBox.Show("?G???[????B"); break;
48 48
				}
49
				this.Close();
50
                Application.Exit();
49
                this.Close();
51 50
            }
52 51

  
53 52
			string s = passwordProtect1.GetLockword();
......
58 57
			{
59 58
				MessageBox.Show("???b?N???[?h???s??????B");
60 59
				this.Close();
61
                Application.Exit();
62 60
            }
63 61

  
64
            if (!getProtectInfo)
62
            if (!passwordProtect1.QueryProtectInfomation())
65 63
            {
66
                if (!passwordProtect1.QueryProtectInfomation()) return;
67
                getProtectInfo = true;
64
                this.Close();
68 65
            }
69 66

  
70 67
            // ???p???
......
89 86
                    {
90 87
                        label2.Text = "???? " + zan.ToString();
91 88
                        label2.Text += " ??????p???p????????";
89
                        getProtectInfo = true;
90
                        s = passwordProtect1.QueryPassword();
92 91
                    }
93 92
                    else
94 93
                    {
......
97 96
                        if (s != String.Empty)
98 97
                        {
99 98
                            //MessageBox.Show("?p?X???[?h?????????????B");
99
                            getProtectInfo = true;
100 100
                            this.Close();
101 101
                        }
102 102
                        else
103
                        {
103 104
                            MessageBox.Show("???i?p?X???[?h??????????????B");
105
                            getProtectInfo = false;
106
                        }
104 107
                    }
105 108
                    break;
106 109
                case 1: label2.Text = "?v???e?N?g??"; break;
......
122 125

  
123 126
            // QueryProtect???\?b?h????l??0??v???e?N?g???@???W???v???e?N?g?????AQueryPassword???\?b?h?????s????p?X???[?h?????????????????m?F?????????????B
124 127
            // ?p?X???[?h????????????????QueryProtect???\?b?h????l??0?????ProFuncNET32(64).dll?????????????\???????????B
125
            if (ret != 0) return;
126

  
127 128
        }
128 129

  
129 130
        private void ProtectForm_FormClosed(object sender, FormClosedEventArgs e)
130 131
		{
131 132
			// ?v???e?N?g????X?V?i?K?????s????????????j
132 133
			passwordProtect1.Finish();
133
		}
134
            if (!getProtectInfo)
135
            {
136
                Application.Exit();
137
            }
138
            
139
        }
134 140

  
135
		private void button2_Click(object sender, EventArgs e)
141
        private void button2_Click(object sender, EventArgs e)
136 142
		{
137 143
			if (passwordProtect1.SetPassword(textBox2.Text))
138 144
            {
139
                textBox2.Text = String.Empty;
145
                getProtectInfo = true;
140 146
                this.Close();
141 147
            }
142 148
            else
......
147 153

  
148 154
        private void button1_Click(object sender, EventArgs e)
149 155
        {
150
            this.Close();
156
            if (!getProtectInfo)
157
            {
158
                MessageBox.Show("???p????????B");
159
                this.Close();
160
            }
161
            else
162
            {
163
                this.Close();
164
            }
151 165
        }
152 166
    }
153 167
}

他の形式にエクスポート: Unified diff