public MultexMultiplication(System.Windows.Forms.Panel panel, System.Windows.Forms.Label label, KeyboardSettings key, ViewSettings view) { panelCalc = panel; labelAnswer = label; //back_color = System.Drawing.Color.FromArgb(255, 245, 245); // パネルの背景の色 ran = new Random(); // キーボードの設定 key_settings = key; // 表示の設定 view_settings = view; number1 = new LongInteger(max_size); number2 = new LongInteger(max_size); single_mode = false; change_stage(Stage.Input1, true); }
public DigitButton(MultexMultiplication m, MultexMultiplication.Stage stage, int row, int col, ViewSettings view) { // この呼び出しは、Windows.Forms フォーム デザイナで必要です。 InitializeComponent(); // TODO: InitializeComponent 呼び出しの後に初期化処理を追加します。 init(m, stage, row, col, view); }
public Settings() { view_settings = new ViewSettings(); key_settings = new KeyboardSettings(); }
public void init(MultexMultiplication m, MultexMultiplication.Stage stage, int row, int col, ViewSettings view) { mult = m; the_stage = stage; the_row = row; the_col = col; settings = view; number = -1; lock_f = false; frm = false; source = false; destination = false; updating = false; sym = ""; pattern = new string[10][]; pattern[0] = new string[8]; pattern[1] = new string[8]; pattern[2] = new string[8]; pattern[3] = new string[8]; pattern[4] = new string[8]; pattern[5] = new string[8]; pattern[6] = new string[8]; pattern[7] = new string[8]; pattern[8] = new string[8]; pattern[9] = new string[8]; pattern[0][0] = "000000"; pattern[0][1] = "001100"; pattern[0][2] = "010010"; pattern[0][3] = "010010"; pattern[0][4] = "010010"; pattern[0][5] = "010010"; pattern[0][6] = "010010"; pattern[0][7] = "001100"; pattern[1][0] = "000000"; pattern[1][1] = "000100"; pattern[1][2] = "001100"; pattern[1][3] = "000100"; pattern[1][4] = "000100"; pattern[1][5] = "000100"; pattern[1][6] = "000100"; pattern[1][7] = "001110"; pattern[2][0] = "000000"; pattern[2][1] = "001100"; pattern[2][2] = "010010"; pattern[2][3] = "010010"; pattern[2][4] = "000100"; pattern[2][5] = "001000"; pattern[2][6] = "010000"; pattern[2][7] = "011110"; pattern[3][0] = "000000"; pattern[3][1] = "001100"; pattern[3][2] = "010010"; pattern[3][3] = "000010"; pattern[3][4] = "001100"; pattern[3][5] = "000010"; pattern[3][6] = "010010"; pattern[3][7] = "001100"; pattern[4][0] = "000000"; pattern[4][1] = "000100"; pattern[4][2] = "001100"; pattern[4][3] = "010100"; pattern[4][4] = "010100"; pattern[4][5] = "011110"; pattern[4][6] = "000100"; pattern[4][7] = "000100"; pattern[5][0] = "000000"; pattern[5][1] = "011110"; pattern[5][2] = "010000"; pattern[5][3] = "011100"; pattern[5][4] = "000010"; pattern[5][5] = "000010"; pattern[5][6] = "010010"; pattern[5][7] = "001100"; pattern[6][0] = "000000"; pattern[6][1] = "001100"; pattern[6][2] = "010010"; pattern[6][3] = "010000"; pattern[6][4] = "011100"; pattern[6][5] = "010010"; pattern[6][6] = "010010"; pattern[6][7] = "001100"; pattern[7][0] = "000000"; pattern[7][1] = "011110"; pattern[7][2] = "000010"; pattern[7][3] = "000010"; pattern[7][4] = "000100"; pattern[7][5] = "000100"; pattern[7][6] = "001000"; pattern[7][7] = "001000"; pattern[8][0] = "000000"; pattern[8][1] = "001100"; pattern[8][2] = "010010"; pattern[8][3] = "010010"; pattern[8][4] = "001100"; pattern[8][5] = "010010"; pattern[8][6] = "010010"; pattern[8][7] = "001100"; pattern[9][0] = "000000"; pattern[9][1] = "001100"; pattern[9][2] = "010010"; pattern[9][3] = "010010"; pattern[9][4] = "001110"; pattern[9][5] = "000010"; pattern[9][6] = "010010"; pattern[9][7] = "001100"; pattern_add = new string[8]; pattern_add[0] = "000000"; pattern_add[1] = "000000"; pattern_add[2] = "000100"; pattern_add[3] = "000100"; pattern_add[4] = "011111"; pattern_add[5] = "000100"; pattern_add[6] = "000100"; pattern_add[7] = "000000"; pattern_sub = new string[8]; pattern_sub[0] = "000000"; pattern_sub[1] = "000000"; pattern_sub[2] = "000000"; pattern_sub[3] = "000000"; pattern_sub[4] = "011111"; pattern_sub[5] = "000000"; pattern_sub[6] = "000000"; pattern_sub[7] = "000000"; pattern_mult = new string[8]; pattern_mult[0] = "000000"; pattern_mult[1] = "000000"; pattern_mult[2] = "010001"; pattern_mult[3] = "001010"; pattern_mult[4] = "000100"; pattern_mult[5] = "001010"; pattern_mult[6] = "010001"; pattern_mult[7] = "000000"; pattern_div = new string[8]; pattern_div[0] = "000000"; pattern_div[1] = "000000"; pattern_div[2] = "000100"; pattern_div[3] = "000000"; pattern_div[4] = "011111"; pattern_div[5] = "000000"; pattern_div[6] = "000100"; pattern_div[7] = "000000"; pattern_ast = new string[8]; pattern_ast[0] = "000000"; pattern_ast[1] = "000000"; pattern_ast[2] = "010101"; pattern_ast[3] = "001110"; pattern_ast[4] = "000100"; pattern_ast[5] = "001110"; pattern_ast[6] = "010101"; pattern_ast[7] = "000000"; }