public GameForm() { InitializeComponent(); //Визуализация картинки ShowImages.ImageToGameForm(Example); //подсказка //Процесс сбора пазла (label) if (AssemblingPuzzles.process == 100) { AssemblingPuzzles.process = 0; } LabelProcess.Content = AssemblingPuzzles.process + "%"; //Никнейм (label) LabelNicName.Content = GlobalClass.NickName; //Время (label) tf = new TimerForm(0, LabelTime); tf.Stop(); tf.timer.Tick += timer_Tick; tf.Start(); //Заполнение частей пазлов Image[] but = new Image[16] { Im1, Im2, Im3, Im4, Im5, Im6, Im7, Im8, Im9, Im10, Im11, Im12, Im13, Im14, Im15, Im16, }; foreach (Image puzl in but) { AssemblingPuzzles.RandomParts(puzl); } }
private void Im16_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) => AssemblingPuzzles.Assembly_of_Puzzles(Im16, Canvas16);