static void openForms() { frm = new Form1(); Program1 p = new Program1(); Application.Run(frm); }
private void falseNegativesCombined_SelectedIndexChanged(object sender, EventArgs e) { if (((Instruction)((ListBox)sender).SelectedItem) != null) { Program1.SetSelected(((Instruction)((ListBox)sender).SelectedItem).index, true); } }
private void correct_SelectedIndexChanged(object sender, EventArgs e) { if (((Instruction)((ListBox)sender).SelectedItem) != null) { Program1.SetSelected(((Instruction)((ListBox)sender).SelectedItem).index, true); } }
private void button4_Click(object sender, EventArgs e) { comparison.DetermineCorrectMapping(); Program1.Refresh(); Program2.Refresh(); ReloadAllFalseNegatives(); ReloadCorrect(); // ReloadMapped(); }
private void AfterGuess() { Program1.Refresh(); ReloadAllFalseNegatives(); ReloadAllFalsePositives(); ReloadCorrect(); // ReloadMapped(); ReloadScore(); this.Enabled = true; }
static void Main(string[] args) { Program1 ob1 = new Program1(); Program2 ob2 = new Program2(); Program3 ob3 = new Program3(); ob1.Student(); ob2.Marks(); ob3.Age(); Console.ReadKey(); }
private void load_Click(object sender, EventArgs e) { this.Enabled = false; comparison = new Comparison(program1TextBox.Text, program2TextBox.Text); ReloadLeft(); Program1.Refresh(); ReloadRight(); ReloadAllFalseNegatives(); ReloadCorrect(); Program1.Refresh(); Program2.Refresh(); ReloadAllFalseNegatives(); ReloadCorrect(); ReloadScore(); this.Enabled = true; }
public void CorrectInputes_Calculates_1CorrectResult() { //arrange //1 3 2 double a = 1; double b = 3; double c = 2; double d = Program1.GetDiscriminant(1, 3, 2); Program1.EquationTypes type = Program1.CheckEquationType(a, b, c); //act double[] result = Program1.FindRoots(type, d, a, b, c); //assert Assert.AreEqual(new double[] { -2.0, -1.0 }, result); }
public void LinearEquation() { //arrange //1 3 2 double a = 0; double b = 3; double c = 2; double d = Program1.GetDiscriminant(1, 3, 2); Program1.EquationTypes type = Program1.CheckEquationType(a, b, c); //act double[] result = Program1.FindRoots(type, d, a, b, c); //assert Assert.AreEqual(new double[] { -2.0 / 3.0 }, result); }
public void RunTillTerminated() { while (!_isTerminated) { if (!Program1.IsWaitingToReceive && !Program1.IsTerminated) { if (_program1CurrentTask == null || _program1CurrentTask.IsCompleted) { _program1CurrentTask = Task.Run(() => Program1.DoCurrentInstruction()); } } if (!Program2.IsWaitingToReceive && !Program2.IsTerminated) { if (_program2CurrentTask == null || _program2CurrentTask.IsCompleted) { _program2CurrentTask = Task.Run(() => Program2.DoCurrentInstruction()); } } } }
public void jaumm(string ja) { HanK.Add(ja); if (wc % 3 != 0) //받침 { inputnojong = search.text; search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], HanK[1 + 3 * (wc / 3)], HanK[2 + 3 * (wc / 3)]); search.text += inputnew; inputnew = ""; if (wc % 3 == 2) { input = search.text; } } else if (wc % 3 == 0) //초성 { inputnojong = search.text; search.text += ja; } wc++; }
static void Main(string[] args) { var program1 = new Program1(); program1.F1(); }
private static void StartProgram(string[] args) { Program1.Main(args); // Application.Run(new EnterSplash()); }
public void Test_Long() { Assert.Equal(5, Program1.CountString("Agung")); }
public Program1 getName() { var obj = new Program1("hello"); return(obj); }
public void moumm(string mo) { if (wc > 0 && (HanK[wc - 1] == "ㅗ" || HanK[wc - 1] == "ㅜ" || HanK[wc - 1] == "ㅡ")) { if (HanK[wc - 1] == "ㅗ" && mo == "ㅏ") { search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], "ㅘ", " "); HanK[3 * (wc / 3) + 1] = "ㅘ"; search.text += inputnew; inputnew = ""; } if (HanK[wc - 1] == "ㅗ" && mo == "ㅐ") { search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], "ㅙ", " "); HanK[3 * (wc / 3) + 1] = "ㅙ"; search.text += inputnew; inputnew = ""; } if (HanK[wc - 1] == "ㅗ" && mo == "ㅣ") { search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], "ㅚ", " "); HanK[3 * (wc / 3) + 1] = "ㅚ"; search.text += inputnew; inputnew = ""; } if (HanK[wc - 1] == "ㅜ" && mo == "ㅓ") { search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], "ㅝ", " "); HanK[3 * (wc / 3) + 1] = "ㅝ"; search.text += inputnew; inputnew = ""; } if (HanK[wc - 1] == "ㅜ" && mo == "ㅔ") { search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], "ㅞ", " "); HanK[3 * (wc / 3) + 1] = "ㅞ"; search.text += inputnew; inputnew = ""; } if (HanK[wc - 1] == "ㅜ" && mo == "ㅣ") { search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], "ㅟ", " "); HanK[3 * (wc / 3) + 1] = "ㅟ"; search.text += inputnew; inputnew = ""; } if (HanK[wc - 1] == "ㅡ" && mo == "ㅣ") { search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], "ㅢ", " "); HanK[3 * (wc / 3) + 1] = "ㅢ"; search.text += inputnew; inputnew = ""; } } else { if (wc % 3 == 1) //초+중+종(평상시) { HanK.Add(mo); search.text = input; inputnew += Program1.combine(HanK[3 * (wc / 3)], HanK[1 + 3 * (wc / 3)], " "); search.text += inputnew; inputnew = ""; } else if (wc % 3 == 0) //받침없을때 종성이었던 애랑 결합 { HanK.Add(HanK[wc - 1]); HanK.Add(mo); wc += 1; search.text = inputnojong; input = search.text; inputnew = ""; inputnew += Program1.combine(HanK[3 * (wc / 3)], HanK[3 * (wc / 3) + 1], " "); search.text += inputnew; inputnew = ""; } wc++; } // else search.text += mo; }
public void Setup() { obj1 = new Program1(); }