private void InitCtrols() { #if debug //UsCtrlLayers.SetScale(.5F); img = Properties.Resources.aat2017731_00001; UsCtrlLayers.AddBottomImage(img); UsCtrlLayers.AddTopImage(Properties.Resources.small2017731_00001); //UsCtrlLayers.SetScale(1F); #endif UsCtrlLayers.RunCommand += new RunCommandHandler <UsCtrlExInfors>(RunPaintCommand); InitToolsPannel(); }
private void mnFile_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { //MessageBox.Show("File\\"+e.ClickedItem.Name); switch (e.ClickedItem.Name) { case "mniOpen": break; case "mniSave": var btmp = UsCtrlLayers.GetCurrentBackLayerImage(); btmp.Save("D:\\Test.png", System.Drawing.Imaging.ImageFormat.Png); break; case "mniSaveAs": break; default: break; } }
private void ToAddMessagesOnPainter(UsCtrlExInfors lmp, CallBackFunc CallBack) { UsCtrlLayers.ToAddMessagesLabel(lmp, CallBack); }