Пример #1
0
        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();
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
 private void ToAddMessagesOnPainter(UsCtrlExInfors lmp, CallBackFunc CallBack)
 {
     UsCtrlLayers.ToAddMessagesLabel(lmp, CallBack);
 }